<?php
namespace app\common\model;

class Matchmaker extends Base
{
    protected $name = 'matchmaker';
    protected $updateTime = false;

    public function getStatusAttr($val)
    {
        $status = [1 => '待审核', 2 => '已通过', 3 => '已驳回'];
        return $status[$val];
    }

    public function getFinishTimeAttr($val)
    {
        if(!$val){
            return '-';
        }

        return date('Y-m-d H:i:s', $val);
    }
}